package com.fengchao.api.dao.usr;


import com.fengchao.api.dao.BaseMapper;
import com.fengchao.model.usr.UsrSendSmsLog;

public interface UsrSendSmsLogMapper extends BaseMapper<UsrSendSmsLog>{

    /**
     * 根据手机号获取验证码
     * @param mobile
     * @return
     */
    UsrSendSmsLog findUsrSendSmsLogByMobile(String mobile);

    /**
     * 修改所有手机号的状态 将isNew 为false
     * @param mobile
     * @return
     */
    Integer updateUsrSendSmsLogIsNewByMobile(String mobile);

}